package Factory;

/**
 * Created with IntelliJ IDEA.
 * User: Bjarke
 * Date: 16-10-13
 * Time: 18:50
 * To change this template use File | Settings | File Templates.
 */
public class EnemyShipFactory {

    public EnemyShip makeEnemyShip(String shipType){
        EnemyShip ship = null;


        // It will only accepts exactly what is specified in equals, so no small letters either.
        if (shipType.equals("U")){
            return new UFOEnemyShip();
        } else

        if (shipType.equals("R")){
            return new RocketEnemyShip();
        } else

        if (shipType.equals("B")){
            return new BigUFOEnemyShip();
        } else return null;
    }
}
